package com.aistar.controller;

import com.aistar.pojo.ChoiceComment;
import com.aistar.pojo.Customer;
import com.aistar.service.ChoiceCommentService;
import com.aistar.util.ServerResponse;
import org.apache.catalina.Server;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/choose/chooseComment")
public class ChoiceCommentController {

    @Autowired
    private ChoiceCommentService choiceCommentService;

    public ServerResponse add(ChoiceComment choiceComment,HttpServletRequest request){
        //获得当前登录用户的id
        Customer customer=(Customer)request.getSession().getAttribute("loginCustomer");
        Integer customerId=customer.getCustomerId();
        System.out.println("登录用户id:" + customerId);

        return null;
    }
}

